<!DOCTYPE html>
<html lang="en">
<head th:replace="_fragment::head(~{::title})">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
    <title>归档</title>
</head>
<body>
<!--    导航-->
    <nav th:replace="_fragment::menu(4)" class="ui inverted attached segment m-padded-tb-mini">
        <div class="ui container">
            <div class="ui inverted secondary menu">
                <h2 class="ui teal header item">大鱼</h2>
                <a href="#" class="item"><i class=" home icon"></i>首页</a>
                <a href="#" class="item"><i class=" idea icon"></i>分类</a>
                <a href="#" class="item"><i class=" tags icon"></i>标签</a>
                <a href="#" class="active item"><i class=" clone icon"></i>归档</a>
                <a href="#" class="item"><i class=" info icon"></i>关于我</a>
                <div class="right item">
                    <div class="ui icon inverted transparent input">
                        <input type="text" placeholder="Search....">
                        <i class="search link icon"></i>
                    </div>
                </div>
            </div>
        </div>

    </nav>
<!--中间内容-->
    <div class="m-padded-tb-large" style="max-width: 60em;margin: auto;">
        <div class="ui container">
            <div class="ui attached segment">
                <div class="ui middle two column grid">
                    <div class="column">
                        <h3 class="ui teal header">归档</h3>
                    </div>
                    <div class="right aligned column">
                        共 <h3 class="ui orange header" style="display: inline-block" th:text="${countBlog}">25</h3>  篇
                    </div>
                </div>
            </div>
            <div th:each="archive:${archives}">
                <br/>
                <h2 class="ui center aligned header" th:text="${archive.key}">2022</h2>
                <div class="ui fluid  vertical menu">
                    <a th:href="@{toBlog(id=${blog.getId()})}" target="_blank" class="item" th:each="blog:${archive.value}">
                    <span>
                        <i class="mini teal circle icon"></i>&nbsp;&nbsp;&nbsp;&nbsp;<span th:text="${blog.getTitle()}">大老师语录</span>
                        <div class="ui teal basic left pointing label" style="padding: 0.3em" th:text="${#dates.format(blog.getUpdateTime(),'MMMdd')}">9月05</div>
                    </span>
                        <div class="ui orange basic left pointing label " th:text="${blog.getFlag()}">原创</div>
                    </a>
<!--/*-->
                    <a href="#" target="_blank" class="item">
                    <span>
                        <i class="mini teal circle icon"></i>&nbsp;&nbsp;&nbsp;&nbsp;大老师语录
                        <div class="ui teal basic left pointing label">9月05</div>
                    </span>
                        <div class="ui orange basic left pointing label ">原创</div>
                    </a>
                    <a href="#" target="_blank" class="item">
                    <span>
                        <i class="mini teal circle icon"></i>&nbsp;&nbsp;&nbsp;&nbsp;大老师语录
                        <div class="ui teal basic left pointing label">9月05</div>
                    </span>
                        <div class="ui orange basic left pointing label ">原创</div>
                    </a>
                    <a href="#" target="_blank" class="item">
                    <span>
                        <i class="mini teal circle icon"></i>&nbsp;&nbsp;&nbsp;&nbsp;大老师语录
                        <div class="ui teal basic left pointing label">9月05</div>
                    </span>
                        <div class="ui orange basic left pointing label ">原创</div>
                    </a>
<!--*/-->
                </div>
            </div>
        </div>
    </div>
<!--底部footer-->
    <footer th:replace="_fragment::footer" class="ui inverted vertical segment m-padded-tb-massive">
        <div class="ui center aligned container">
            <div class="ui inverted divided grid">
                <div class="three wide column">
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../images/1.jpg" class="ui rounded image" style="width: 110px">
                        </div>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header">最新博客</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">故事</a>
                        <a href="#" class="item">故事</a>
                        <a href="#" class="item">故事</a>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header">联系我</h4>
                    <div class="ui inverted link list">
                        <a href="#" class="item">Emile:748835228@qq.com</a>
                        <a href="#" class="item">QQ: 748835228</a>
                    </div>
                </div>
                <div class="seven wide column">
                    <h4 class="ui inverted header">最新博客</h4>
                    <p>111111111111111111111111111111</p>
                </div>
            </div>
            <div class="ui inverted section divider"></div>

        </div>
    </footer>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
</body>
</html>